package com.xrr.shardingdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
@AllArgsConstructor
public class Order {
    @TableId
    private Long orderId;

    @TableField("order_name")
    private String orderName;

    @TableField("user_id")
    private Integer userId;
}
